package com.saxon.blog.controller.thymeleaf;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class viewController {
    //首页
    @GetMapping({"/","index"})
    public String index(){
        return "index";
    }
    //内容
    @GetMapping("/details")
    public String details(){
        return "details";
    }
    //微语
    @GetMapping("/whisper")
    public String whisper(){
        return "whisper";
    }
    //关于我
    @GetMapping("/about")
    public String about(){
        return "about";
    }
    //留言
    @GetMapping("/leacots")
    public String leacots(){
        return "leacots";
    }
    //相册
    @GetMapping("/album")
    public String album(){
        return "photo";
    }
}
